<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="/WEB-INF/pages/common/fns.tld" prefix="fns"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8" />
<meta property="qc:admins" content="11012011215645665461145663757077527" />
<%@ include file="/WEB-INF/pages/common/inc.jsp"%>
<link rel="stylesheet" href="${ctxStatic}/css/bootstrap.css" />
<link rel="stylesheet" href="${ctxStatic}/css/bootstrap-theme.css" />
<link rel="stylesheet" href="${ctxStatic}/css/swiper-3.3.1.min.css" />
<script type="text/javascript" src="${ctxStatic}/js/jquery.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/bootstrap.js"></script>
<script type="text/javascript" src="${ctxStatic}/js/swiper-3.3.1.min.js"></script>
<link rel="stylesheet" href="${ctxStatic}/css/style.css" />
<title></title>
<style>
#newslist .list-imgages {
	width: 200px;
	height: 100px;
	border: 1px solid #ccc;
	float: left;
	margin-right: 20px;
}

.nav>li.active {
	background: transparent;
	border: 0px;
}

#newslist .list-group-item {
	height: auto;
	overflow: hidden;
	border-top: 1px dashed #ccc;
}

#newslist .list-group-item label {
	font-size: 16px;
	text-indent: 25px;
	letter-spacing: 2px;
}

#newslist .list-group-item .list-info {
	font-size: 14px;
	color: #ccc;
	text-indent: 2em;
	line-height: 25px;
}
</style>
</head>

<body>
	<jsp:include page="header.jsp"></jsp:include>
	<div class="w_1000" style="margin: 0 auto;">
		<ul id="myTab" class="nav nav-pills">
			<li class="active"><a href="#home" data-toggle="tab">康明斯</a></li>
			<!--  <li><a href="#ios" data-toggle="tab">热销</a></li>
			<li><a href="#ios" data-toggle="tab">推荐</a></li>-->
			<li id="sola">
				<div class="input-group">
					<span class="input-group-addon"><span
						class="glyphicon glyphicon-search" aria-hidden="true"></span></span> <input
						type="text" class="form-control" />
				</div>
				<button type="button" class="btn btn-primary">搜索</button>
			</li>
		</ul>
		<div id="myTabContent" class="tab-content">
			<div class="tab-pane fade in active" id="home">
				<div class="row line">
					<div class="col-xs-1 col-md-1 text-center">
						<strong style="line-height: 40px;">汽油机</strong>
					</div>
					<div class="col-xs-11 col-md-11">
						<table class="table">
							<tr>
								<td>康明斯16KW</td>
								<td>康明斯26KW</td>
								<td>康明斯36KW</td>
								<td>康明斯46KW</td>
								<td>康明斯56KW</td>
								<td>康明斯66KW</td>
								<td>康明斯76KW</td>
								<td>康明斯86KW</td>
								<td>康明斯96KW</td>
								<td>康明斯10KW</td>
								<td>康明斯11KW</td>
								<td>康明斯12KW</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="row line">
					<div class="col-xs-1 col-md-1 text-center">
						<strong style="line-height: 40px;">柴油机</strong>
					</div>
					<div class="col-xs-11 col-md-11">
						<table class="table">
							<tr>
								<td>康明斯16KW</td>
								<td>康明斯26KW</td>
								<td>康明斯36KW</td>
								<td>康明斯46KW</td>
								<td>康明斯56KW</td>
								<td>康明斯66KW</td>
								<td>康明斯76KW</td>
								<td>康明斯86KW</td>
								<td>康明斯96KW</td>
								<td>康明斯10KW</td>
								<td>康明斯11KW</td>
								<td>康明斯12KW</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="row line">
					<div class="col-xs-1 col-md-1 text-center">
						<strong style="line-height: 40px;">单/双缸</strong>
					</div>
					<div class="col-xs-11 col-md-11">
						<table class="table">
							<tr>
								<td>康明斯16KW</td>
								<td>康明斯26KW</td>
								<td>康明斯36KW</td>
								<td>康明斯46KW</td>
								<td>康明斯56KW</td>
								<td>康明斯66KW</td>
								<td>康明斯76KW</td>
								<td>康明斯86KW</td>
								<td>康明斯96KW</td>
								<td>康明斯10KW</td>
								<td>康明斯11KW</td>
								<td>康明斯12KW</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-1 col-md-1 text-center">
						<strong style="line-height: 79px;">高性能</strong>
					</div>
					<div class="col-xs-11 col-md-11">
						<table class="table">
							<tr class="text-center">
								<td><img src="${ctxStatic}/img/test/21.png"><small>康明斯16KW</small></td>
								<td><img src="${ctxStatic}/img/test/22.png"><small>康明斯20KW</small></td>
								<td><img src="${ctxStatic}/img/test/23.png"><small>康明斯22KW</small></td>
								<td><img src="${ctxStatic}/img/test/24.png"><small>康明斯24KW</small></td>
								<td><img src="${ctxStatic}/img/test/25.png"><small>康明斯28KW</small></td>
								<td><img src="${ctxStatic}/img/test/28.png"><small>康明斯32KW</small></td>
								<td><img src="${ctxStatic}/img/test/27.png"><small>康明斯34KW</small></td>
								<td><img src="${ctxStatic}/img/test/23.png"><small>康明斯40KW</small></td>
								<td><img src="${ctxStatic}/img/test/21.png"><small>康明斯48KW</small></td>
							</tr>
						</table>
					</div>
				</div>
			</div>
			<div class="tab-pane fade" id="ios">
				<p>iOS is a mobile operating system developed and distributed by
					Apple Inc. Originally released in 2007 for the iPhone, iPod Touch,
					and Apple TV. iOS is derived from OS X, with which it shares the
					Darwin foundation. iOS is Apple's mobile version of the OS X
					operating system used on Apple computers.</p>
			</div>
			<div class="tab-pane fade" id="jmeter">
				<p>jMeter is an Open Source testing software. It is 100% pure
					Java application for load and performance testing.</p>
			</div>
		</div>
	</div>
	<section class="container-fluid w_1000">
	<div class="container-fluid border_line" id="news">
		<div class="row">
			<div class="col-xs-5 col-md-4">
				<div id="myCarousel" class="carousel slide">
					<!-- 轮播（Carousel）指标 -->
					<ol class="carousel-indicators">
						<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
						<li data-target="#myCarousel" data-slide-to="1"></li>
						<li data-target="#myCarousel" data-slide-to="2"></li>
					</ol>
					<!-- 轮播（Carousel）项目 -->
					<div class="carousel-inner">
						<c:forEach items="${a}" var="news" begin="0" end="2">
							<div class="item">
								<a href="${ctxStatic}/info?id=${news.id}"> <img
									src="${qiniu}/${news.imgurl}"></a>
								<div class="carousel-caption">${news.title}</div>
							</div>
						</c:forEach>
					</div>
					<script type="text/javascript">
						$(".carousel-inner .item").eq(0).addClass("active");
					</script>
					<!-- 轮播（Carousel）导航 -->
					<a class="carousel-control left" href="#myCarousel"
						data-slide="prev">&lsaquo;</a> <a class="carousel-control right"
						href="#myCarousel" data-slide="next">&rsaquo;</a>
				</div>
				<ul class="list-group">
					<c:forEach items="${a}" var="news" begin="3" end="7">
						<li class="list-group-item"><span class="badge">${news.date}</span>
							<a href="${ctx}/info?id=${news.id}"> <label>[${news.type}]</label>${news.title}</a></li>
					</c:forEach>
				</ul>
			</div>
			<div class="col-xs-8 col-md-8">
				<c:forEach items="${a}" var="news" begin="9" end="9">
					<h3 class="w_100 text-center   none title" style="font-size: 24px;">
						<a href="${ctx}/info?id=${news.id}" style="color: red">
							${news.title}</a>
					</h3>
				</c:forEach>
				<ul class="list-group">
					<c:forEach items="${a}" var="news" begin="10" end="21">
						<li class="list-group-item"><span class="badge">${news.date}</span>
							<a href="${ctx}/info?id=${news.id}"> <label>[${news.type}]</label>${news.title}</a></li>
					</c:forEach>
				</ul>
			</div>
		</div>
	</div>
	<div class="container w_1000 border_line tip">
		<label class="title"><a href="list?name=视频">视频大全</a></label>
		<div class="swiper-container w100">
			<div class="swiper-wrapper">
				<c:forEach items="${d}" var="news" begin="7">
					<div class="swiper-slide text-center">
						<a href="${ctx}/info?id=${news.id}"> <img
							src="${qiniu}/${news.imgurl}" width="150px" height="80px">${news.title}</a>
					</div>
				</c:forEach>
			</div>
		</div>
		<table class="table" id="video_list">
			<tr>
				<c:forEach items="${d}" var="news" begin="0" end="0">
					<td rowspan="3" width="530" height="360"><a
						href="${ctx}/info?id=${news.id}"> <img
							src="${qiniu}/${news.imgurl}"></a></td>

				</c:forEach>
				<c:forEach items="${d}" var="news" begin="1" end="2">
					<td width="280" height="120"><a
						href="${ctx}/info?id=${news.id}"> <img
							src="${qiniu}/${news.imgurl}" /></a></td>
				</c:forEach>
			</tr>
			<tr>
				<c:forEach items="${d}" var="news" begin="3" end="4">
					<td width="280" height="120"><a
						href="${ctx}/info?id=${news.id}"> <img
							src="${qiniu}/${news.imgurl}" /></a></td>
				</c:forEach>
			</tr>
			<tr>
				<c:forEach items="${d}" var="news" begin="5" end="6">
					<td width="280" height="120"><a
						href="${ctx}/info?id=${news.id}"> <img
							src="${qiniu}/${news.imgurl}" /></a></td>
				</c:forEach>
			</tr>
		</table>
		<div class="container w_1000 border_line tip">
			<label class="title"><a href="list?name=展会">行业展会</a></label>
			<div class="swiper-container w100">
				<div class="swiper-wrapper">
					<c:forEach items="${e}" var="news" begin="0" end="9">
						<div class="swiper-slide text-center">
							<a href="${ctx}/info?id=${news.id}"> <img
								src="${qiniu}/${news.imgurl}" width="150px" height="80px">${news.title}</a>
						</div>
					</c:forEach>
				</div>
			</div>
			<div class="swiper-container w100">
				<div class="swiper-wrapper">
					<c:forEach items="${e}" var="news" begin="10" end="19">
						<div class="swiper-slide text-center">
							<a href="${ctx}/info?id=${news.id}"> <img
								src="${qiniu}/${news.imgurl}" width="150px" height="80px">${news.title}</a>
						</div>
					</c:forEach>
				</div>
			</div>
		</div>
	</div>
	<div class="container w_1000 border_line tip">
		<label class="title">发动机之家排行</label>
		<div class="row">
			<div class="col-xs-6 col-md-4">
				<table class="w_100">
					<tr>
						<td>
							<h4>新闻排行</h4>
						</td>
						<td class="text-right"><a href="list?name=新闻" style="font-size:12px;">更多</a></td>
					</tr>
				</table>
				<ul class="list-group">
					<c:forEach items="${a}" var="news" begin="0" end="9"
						varStatus="status">
						<li class="list-group-item"><span class="badge">${news.date}</span><a
							href="info?id=${news.id}"><label>${status.index+1}.</label>${news.title}</a></li>
					</c:forEach>
				</ul>
			</div>
			<div class="col-xs-6 col-md-4">
				<table class="w_100">
					<tr>
						<td>
							<h4>视频排行</h4>
						</td>
						<td class="text-right"><a href="list?name=视频" style="font-size:12px;">更多</a></td>
					</tr>
				</table>
				<ul class="list-group">
					<c:forEach items="${b}" var="news" begin="0" end="9"
						varStatus="status">
						<li class="list-group-item"><span class="badge">${news.date}</span><a
							href="info?id=${news.id}"><label>${status.index+1}.</label>${news.title}</a></li>
					</c:forEach>
				</ul>
			</div>
			<div class="col-xs-6 col-md-4">
				<table class="w_100">
					<tr>
						<td>
							<h4>技术排行</h4>
						</td>
						<td class="text-right"><a href="list?name=技术" style="font-size:12px;">更多</a></td>
					</tr>
				</table>
				<ul class="list-group">
					<c:forEach items="${d}" var="news" begin="0" end="9"
						varStatus="status">
						<li class="list-group-item"><span class="badge">${news.date}</span><a
							href="info?id=${news.id}"><label>${status.index+1}.</label>${news.title}</a></li>
					</c:forEach>
				</ul>
			</div>
		</div>
	</div>
	<div class="container w_1000 border_line tip">
		<label class="title"><a href="list?name=技术">技术前沿</a></label>
		<ul class="list-group" id="newslist">
			<c:forEach items="${b}" var="news" begin="0" end="10">
				<li class="list-group-item"><span class="badge">${news.date}</span>
					<div class="list-imgages">
						<img src="${qiniu}/${news.imgurl}" width="198px" height="98px">
					</div> <a href="${ctx}/info?id=${news.id}"> <label>[${news.type}]</label>
						<span>${news.title}</span></a>
					<div class="list-info">${news.context}</div></li>
			</c:forEach>
		</ul>
	</div>
	</section>
	<jsp:include page="footer.jsp"></jsp:include>
</body>
<script>
	$(function() {
		$('a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
			// 获取已激活选项卡的名称
			var activeTab = $(e.target).text();
			// 获取先前选项卡的名称
			var previousTab = $(e.relatedTarget).text();
			$(".active-tab span").html(activeTab);
			$(".previous-tab span").html(previousTab);
		});
		var swiper = new Swiper('.swiper-container', {
			pagination : '.swiper-pagination',
			slidesPerView : 6,
			paginationClickable : true,
			spaceBetween : 30
		});
	})
</script>
</shtml>